package com.yuzhihao.writejvm.attributes.runtimeva;

import com.yuzhihao.writejvm.clazz.ClassInfo;
import com.yuzhihao.writejvm.read.Parse;
import lombok.Data;
import lombok.extern.log4j.Log4j2;

import java.io.DataInputStream;

/**
 * The element_value structure is a discriminated union representing the value of an element-value pair. It has the following format:
 * <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.7.16.1">ElementValue</a>
 *
 * @author yzh
 * @since 2021年12月11日14:02:51
 */
@Data
@Log4j2
public class ElementValue implements Parse {

    public static final int tag_u1 = 1;

    protected int tag;

    protected ClassInfo ci;

    @Override
    public void parse(DataInputStream dis, ClassInfo ci) {
        this.setCi(ci);
    }

    public String print(String print,int index){
        return "";
    }
}
